package com.kaigejava.javanotebook.threaddemo;

/**
 * @author kaigejava
 * 线程实现的第一种方式(无返回值的)
 */
public class ExtendsThreadDemo  extends  Thread{
    @Override
    public  void  run(){
        System.out.println("Running:"+Thread.currentThread().getName());
    }
    public static void main(String[] args) {
        ExtendsThreadDemo threadDemo = new ExtendsThreadDemo();
        threadDemo.run();
    }

}
